package webshop;

public class Kunde {

	private boolean premium = false;
	private String vorname;
	private String nachname;

	public Kunde(String vorname, String nachname) {
		Shop.addObject(this);
		this.vorname = vorname;
		this.nachname = nachname;
	}

	public Kunde(String vorname, String nachname, boolean premium) {
		this(vorname, nachname);
		this.premium = premium;
	}

	public void setPremium() {
		premium = true;
	}

	public boolean getPremium() {
		return premium;
	}

	public String toString() {
		return vorname +" "+ nachname + (getPremium() ? " (Premium Mitglied)" : "");
	}
}
